﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CompanyInfo.aspx.cs" Inherits="Backend_CompanyInfo" %>

<%@ Import Namespace="Wsitech.Model" %>
<%@ Import Namespace="Wsitech.BLL" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
    <title>角色管理</title>
    <link href="!css/content.css" rel="stylesheet" type="text/css" />
    <script src="!js/jquery-1.7.1.js" type="text/javascript"></script>
    <script src="!js/default.js" type="text/javascript"></script>
    <!--colorbox-->
    <link href="../!js/colorbox/colorbox.css" rel="stylesheet" type="text/css" />
    <script src="../!js/colorbox/jquery.colorbox-min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $('.colorbox').colorbox({
                iframe: true,
                width: 500,
                height: 750
            });
        });
    </script>
    <!--colorbox-->
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td class="bgleft" valign="top">
                <img src="/Backend/images/left-top-right.gif" />
            </td>
            <td class="bgcenter" valign="top">
                <div class="title">
                    角色管理
                </div>
            </td>
            <td class="bgright" width="16" valign="top">
                <img src="/Backend/images/nav-right-bg.gif" />
            </td>
        </tr>
        <tr class="main">
            <td class="bgleft" valign="middle">
                &nbsp;
            </td>
            <td valign="top">
                <!--Content-->
                <div class="content">
                    <div class="list_title">
                        成员企业列表
                        <p class="add_news">
                            <a class="colorbox" href="CompanyAdd.aspx">添加新成员</a>
                        </p>
                    </div>
                    <table width="60%" border="0" cellspacing="1" cellpadding="0" class="list_table">
                        <tr>
                            <th>
                                企业名称
                            </th>
                            <th>
                                English Name
                            </th>
                            <th>
                                招聘首页
                            </th>
                            <th>
                                显示站外招聘
                            </th>
                            <th>
                                编辑
                            </th>
                        </tr>
                        <asp:Repeater ID="repCompany" runat="server" OnItemCommand="repCompany_ItemCommand"
                            OnItemDataBound="repCompany_ItemDataBound">
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <%#(Container.DataItem as CompanyInfo).CompanyName %>
                                    </td>
                                    <td>
                                        <%#(Container.DataItem as CompanyInfo).EnCompanyName%>
                                    </td>
                                    <td>
                                        <a target="_blank" href="<%#(Container.DataItem as CompanyInfo).JobUrl %>">
                                            <%#(Container.DataItem as CompanyInfo).JobUrl %>
                                        </a>
                                    </td>
                                    <td>
                                        <asp:LinkButton ID="lbtnEnable" CommandName="Enable" CommandArgument="<%#(Container.DataItem as CompanyInfo).CompanyId %>"
                                            runat="server" class="red"><img src="/Backend/images/disabled.gif" title="点击设为启用" /></asp:LinkButton>
                                        <asp:LinkButton ID="lbtnDisable" CommandName="Disable" CommandArgument="<%#(Container.DataItem as CompanyInfo).CompanyId %>"
                                            runat="server" class="blue"><img src="/Backend/images/enabled.gif" title="点击设为禁用" /></asp:LinkButton>
                                    </td>
                                    <td>
                                        <a class="colorbox" href="/Backend/CompanyAdd.aspx?companyid=<%#(Container.DataItem as CompanyInfo).CompanyId %>">
                                            <img src="images/edit.gif" title="编辑" /></a>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </div>
                <!--Content-->
            </td>
            <td class="bgright">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="bg_bottom_left" valign="bottom">
                &nbsp;
            </td>
            <td class="bg_bottom_center">
            </td>
            <td class="bg_bottom_right" valign="bottom">
            </td>
        </tr>
    </table>
    </form>
</body>
</html> 